#include <iostream>
using namespace std;

class Point
{
private:
    // x和y座标
    int x;
    int y;

public:
    friend class Rectangle;
    Point(int x, int y) : x(x), y(y)
    {
    }

    int getX()
    {
        return x;
    }

    int getY()
    {
        return y;
    }
};

class Rectangle
{
private:
    Point topLeft; // 左上
    int width;     // 横向的宽度
    int height;    // 纵向的高度
public:
    Rectangle(int x, int y, int width, int height)
        : topLeft(Point(x, y)), width(width), height(height)
    {
    }

    int getArea()
    {
        return width * height;
    }

    bool isIn(Point p)
    {
        // 通过topLeft的坐标和width、height，计算其他顶点的坐标
        // p的坐标和各顶点坐标判断大小
        return topLeft.x + width > p.x && topLeft.x < p.x && topLeft.y + height > p.y && topLeft.y < p.y;
    }
};

int main()
{
    int topLeftX, topLeftY, width, height;
    int px, py;
    cin >> topLeftX >> topLeftY >> width >> height;
    cin >> px >> py;
    Point p(px, py);
    Rectangle r(topLeftX, topLeftY, width, height);
    cout << r.getArea() << endl;
    if (r.isIn(p))
        cout << "In" << endl;
    else
        cout << "Not in" << endl;
    return 0;
}